import { Authority ,getBolb} from '../request'

// 个人新增修改

const { get,post} = Authority


export const personUpdate = params => post('/user/person/v1/superUpdate', params)
//个人列表
export const GetPerson = params => get('/user/person/v1/getByLoginId', { params })

// 单位新增
export const companyUpdate = params => post('/user/company/v1/superUpdate', params)
// 单位列表
export const getCompany = params => get('/user/company/v1/getByLoginId', { params })

// 用户列表
export const userQueryList = params => get('/open/user/queryList', { params })
// 专家列表
export const professOpenQueryList = params => get('/profess/open/queryList', { params })


//是否同意入会
export const userValid = params => post('/user/v1/valid', params)

//管理员用户管理
export const sysAdd = params => post('/user/sysAdd', params)

// 专家类型列表
export const professTagQueryList = params => get('/open/profess/tag/queryList', { params })
// 用户下拉列表
export const userQuerySelectList = params => get('/user/querySelectList', { params })

//推送短信成为专家
export const professPush = params => post('/profess/push', params)
//专家确认(短信确认版)
export const professOpenAdmit = params => post('/profess/open/admit', params)
// 查询专家详情
export const professGetById = params => get('/profess/open/getById', { params })

//专家类型新增编辑
export const professAdd = params => post('/profess/tag/add', params)

//专家类型删除
export const professDel= params => post('/profess/tag/del', params)

//专家审批
export const professAdmit= params => post('/profess/admit', params)

//申请成为专家
export const professRequire= params => post('/profess/require', params)

// 申请专家列表
export const professQueryList = params => get('/profess/queryList', { params })

//下载会员信息
export const downloadUser = params => getBolb('/download/user', { params })
